﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ayatta.Contract;

namespace Web.My.Controllers
{
    public class TestController : Controller
    {
        private readonly Lazy<IInfrastructureService> infrastructureService;
        public TestController(Lazy<IInfrastructureService> infrastructureService)
        {
            this.infrastructureService = infrastructureService;
        }

        public ActionResult Index()
        {
            var s = infrastructureService.Value.Test();
            return Content(s.ToString());
        }

    }
}
